package cn.bone.boot01.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by superbone on 2018/9/19.
 */
@Component
@PropertySource("classpath:person.properties")
public class Cat {

    @Value("${person.first-name}")
    private String name;

    @Value("${person.age}")
    private Integer age;

    @Value("${person.last-name}")
    private String note;

    @Value("12")
    private Integer icon;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Integer getIcon() {
        return icon;
    }

    public void setIcon(Integer icon) {
        this.icon = icon;
    }
}
